

package net.qiqbframework.eventhandling;

import javax.annotation.Nonnull;
import java.util.List;
import java.util.function.Consumer;

public enum DirectEventProcessingStrategy implements EventProcessingStrategy {
    /**
     * Singleton instance of the {@link DirectEventProcessingStrategy}.
     */
    INSTANCE;

    @Override
    public void handle(@Nonnull EventMessage<?> events,
                       @Nonnull Consumer<EventMessage<?>> processor) {
        processor.accept(events);
    }
}
